from time import sleep
from common.Utils import ForumDriver
from test import ForumLogin_test
from test import ForumHome
from test import ForumEdit
from test import ForumReplymsg
from test import ForumUser
from test import ForumUserRegister

if __name__ == "__main__":
    ForumLogin_test.ForumLoginTest().loginUI()
    ForumLogin_test.ForumLoginTest().LoginFunc("zhangsan","123")
    sleep(2)
    ForumUserRegister.ForumUserRegister().RegisterTest()
    sleep(2)
    ForumEdit.ForumEdit().EditUI()
    ForumEdit.ForumEdit().EditFunc()
    sleep(2)
    ForumHome.ForumHome().HomeBotton()
    ForumHome.ForumHome().HomePic()
    sleep(2)
    ForumHome.ForumHome().HomePost()
    sleep(2)
    ForumHome.ForumHome().HomePostFunc()
    sleep(2)
    ForumHome.ForumHome().HomeSwitchMod()
    ForumHome.ForumHome().HomeSwitchMod()
    sleep(1)
    ForumReplymsg.ForumReplymsg().ReplyElement()
    ForumReplymsg.ForumReplymsg().ReplyFunc()
    ForumUser.ForumUser().UserPost()
    ForumUser.ForumUser().UserCenter()
    ForumDriver.driver.quit()
